dojo.provide("apt.Popover");
dojo.require("dijit._WidgetBase");
dojo.require("dijit._TemplatedMixin");

dojo.declare("apt.Popover", [dijit._WidgetBase, dijit._TemplatedMixin], {
    templateString: dojo.cache('apt.templates', 'Popover.html'),
		widgetsInTemplate: true,
    title: '',
    content: '',
    
    constructor: function(){
    },
    
    postCreate: function(){
      var b = dojo.query('body')[0];
      this.placeAt(b, 'last');
    },
		
    destroy: function(){
    },
    
    show: function(){
      dojo.style(this.domNode, 'display', 'block');
    },
    
    hide: function(e){
      dojo.stopEvent(e);
      dojo.style(this.domNode, 'display', 'none');
    }
});